package com.zy.study.utils.MyException;

import lombok.Data;

@Data
public class BizException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	private int  errorCode;
	
	private String errorMsg;
	
	public BizException(int errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public BizException(int errorCode, String errorMsg, Throwable cause) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	@Override
	public Throwable fillInStackTrace() {
		return this;
	}

}
